<template>
	<view>
	 
	  <view class="itemcent">
	      <view class="leftname">物流单号</view>
	      <view class="riginput">
	      <input type="text"
	      v-model="courier_code" 
	      placeholder="请输入物流单号" /></view>
	  </view>
	  <view class="itemcent">
	      <view class="leftname">物流商</view>
	      <view class="riginput">
	      <input type="text"
	      v-model="logistics_company" 
	      placeholder="请输入物流商" /></view>
	  </view>
	  <view class="tipss">
	     注：线下发货可以不填以上信息，直接点击确认发货就行
	  </view>
	
	 
	  <view class="savebtn" @click="savewdinfo">提交信息</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				  courier_code:"",
				  logistics_company:"",
				  id:""
			}
		},
		onShow() {
			
		},
		onLoad(p) {
			this.id=p.id
		},
		methods: {
			
			 //保存信息
			savewdinfo(){
			  var data={}
			  let that=this
			  let product=[];
			 
			  data.id=that.id //营业执照
			  data.courier_code=that.courier_code //网点名称
			  data.logistics_company=that.logistics_company
			  
			  uni.showLoading({ title: '提交中,请稍等'})
			  this.request('/api/code/save_exchange_send', data,"post").then(rt => {
				  uni.hideLoading()
				  uni.showToast({title:"提交成功",icon:"none"})
				  setTimeout(function(){
					  uni.navigateBack({delta:1})
				  },2000)
			  })
			},
		}
	}
</script>

<style>
.uploadbtn{
  width: 150px;
  text-align: center;
  margin: 0 auto;
  background-color: #1B764A;
  color: #fff;
  height: 35px;
  line-height: 35px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 20px;
}
.showrentip{
  text-align: center;
  margin-top: 150px;
}
.lokkdd{
  
  border: 1px solid #1B764A;
  color: #1B764A;
  width: 100px;
  height: 30px;
  line-height: 30px;
  margin: 0 auto;
  margin-top: 40px;
  border-radius: 5px;
  font-size: 14px;
}
.showtips{
  margin: 10px;
  font-size: 14px;
  padding: 10px;
  color: #999;
}
.tipss{
  font-size: 14px;
  color: #999;
  padding-left: 10px;
}
.itemcent{
  display: flex;
  height: 35px;
  line-height: 35px;
  background: #fff;
  padding-left: 10px;
  font-size: 14px;
  border-bottom: 2px solid #eee;
  width: calc(100% - 40px);
  margin: 0 auto;
  margin: 10px;
}
.leftname{
  width: 80px;
}
.riginput{
  width: calc(100% - 80px);
}
.riginput input{
  height: 35px;
  line-height: 35px;
  width: 100%;
}
page{
  background-color: #eee;
}
.formdiv{
  width: calc(100% - 20px);
  margin: 30px auto;
  background-color: #fff;
  border-radius: 2px;
  padding-bottom: 50px;
}
.savebtn{
  background-color: #1B764A;
  color: #fff;
  width: 150px;
  text-align: center;
  margin: 0 auto;
  height: 35px;
  line-height: 35px;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 50px;
}

/* 蒙层 */
.popup-box{
  position: absolute;
  z-index: 99;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
}
/* 上 */
.info-top{
  position: fixed;
  z-index: 999;
  width: 100%;
  top: 0;
  background-color: white;
  border-bottom-left-radius: 5rpx;
  border-bottom-right-radius: 5rpx;
}
/* 中 */
.info-center{
  position: fixed;
  z-index: 999;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10rpx;
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
}
/* 下 */
.info-bottom{
  position: fixed;
  z-index: 999;
  width: 100%;
  bottom: 0;
  background-color: white;
  border-top-left-radius: 10rpx;
  border-top-right-radius: 10rpx;
}
/* 左 */
.info-left{
  position: fixed;
  z-index: 999;
  width: 50%;
  height: 100%;
  top: 0;
  background-color: white;
  border-top-right-radius: 10rpx;
  border-bottom-right-radius: 10rpx;
}
/* 右 */
.info-right{
  position: fixed;
  z-index: 999;
  width: 50%;
  height: 100%;
  right: 0;
  top: 0;
  background-color: white;
  border-top-left-radius: 10rpx;
  border-bottom-left-radius: 10rpx;
}
/* 自定义内容（根据自己需求更改,可删除） */
button{
  margin: 15rpx 0;
}
.row-info{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15rpx;
  font-size: 32rpx;
}
.row-info view{
  padding: 10rpx 0;
}
.row-info view:first-child{
  display: flex;
  flex-direction: row;
  align-items: center;
}
.line{
  width: 100rpx;
  height: 1rpx;
}
.left-line{
  background-image: linear-gradient(to left,orange,white);
}
.right-line{
  background-image: linear-gradient(to right,orange,white);
}
.row-author{
  font-size: 24rpx;
  color: gray;
}
.row-btn{
  display: flex;
  flex-direction: row;
  align-items: center;
  border-top: 1rpx dashed #f1f1f1;
}
.row-btn view{
  flex: 1;
  text-align: center;
  margin: 20rpx 10%;
  padding: 12rpx 0;
  font-size: 32rpx;
  border-radius: 10rpx;
}
.left-btn{
  background-color: #f1f1f1;
  color: #33ccff;
}
.right-btn{
  background-color: #33ccff;
  color: white;
}
.fixed{
  position: fixed;
  bottom: 0;
  width: 50%;
}
.padd{padding-top: 30px;}

</style>
